Repository navigation
fix(desktop): use task-scoped context wiki tools - #94640
Merged
Merged
Conversation
Generated-By: PostHog Desktop Task-Id: b4d458c6-7d79-47ef-85fc-97d4b4542fee
|
😎 Merged successfully - details. |
1 task
Contributor
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
🤖 CI report✅ Trunk lane — non-backend laneThis PR is assigned to the non-backend lane. It does not run backend Python tests and may merge in parallel with PRs in other lanes. |
HostHog preview —
|
dmarticus
marked this pull request as ready for review
September 3, 2026 22:53
Contributor
Prompt To Fix All With AI### Issue 1
products/desktop/packages/ui/src/features/canvas/contextPrompt.test.ts:29
**Keep the broader guard**
This assertion now excludes only `task-context-wiki-page-update`. If the disabled prompt regresses to the organization-scoped `context-wiki-page-update` while retaining the legacy publisher, this test will still pass. This is the only test guarding against Context Wiki tools leaking into disabled prompts, so keep the broader assertion or reject both tool families explicitly.
```suggestion
expect(prompt).not.toContain("context-wiki-page-update");
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "Merge branch 'master' into posthog/use-t..." | Re-trigger Greptile |
Generated-By: PostHog Desktop Task-Id: b21105e6-4a22-4414-80f4-098b16626281
Generated-By: PostHog Desktop Task-Id: b21105e6-4a22-4414-80f4-098b16626281
charlesvien
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Unattended CONTEXT.md tasks need task-scoped tools after #94480 reaches the backend.
Why: The existing tool names remain organization-scoped for human MCP sessions, so project-scoped task tokens cannot use them.
Changes
Warning
Merge this PR only after #94480 reaches the backend and MCP deployments.
How did you test this code?
Updated prompt coverage confirms enabled tasks use the task aliases and disabled tasks keep the legacy channel-instructions tool. The focused Desktop tests passed.
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
None. This updates an internal task prompt.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Codex used local validation and GitHub CLI. Skills: /debugging-ci-failures, /writing-tests, and /writing-pr-descriptions.
The Desktop coupling check required this client change to ship after the backend capability.
Created with PostHog Desktop